/**
 * Simple lexer application, parse input tokens.
 * Add two numbers from the parse script.
 * This implementation done, Berlin Brown (berlin dot brown at gmail.com)
 * Variation on code from : "Language Implementation Patterns", Terence Parr
 */
package org.berlin.octane.compiler.lang;


/**
 * Plus Expression Node. 
 */
public class PlusNode extends ExpressionNode {
    
    private ExpressionNode argOne;
    private ExpressionNode argTwo;
    
    public PlusNode(final VisitorToken t, final ExpressionNode arg1, final ExpressionNode arg2) {
        
        super(t);        
        this.argOne = arg1;
        this.argTwo = arg2;
        
    }
    
    @Override
    public void visit(final IAdderVisitor visitor) { 
        visitor.visit(this);
    }

    /**
     * @return the argOne
     */
    public ExpressionNode getArgOne() {
        return argOne;
    }
    
    /**
     * @return the argTwo
     */
    public ExpressionNode getArgTwo() {
        return argTwo;
    }

    
} // End of the class //
